public static function createEmptyMovieClip(param1:Object, param2:String, param3:Number, param4:Boolean = true) : MovieClip
{
var mc:MovieClip = null;
var parent:Object = param1;
var name:String = param2;
var depth:Number = param3;
var doAdd:Boolean = param4;
mc = new MovieClip();
if(doAdd)
{
if(false && depth)
{
parent.addChildAt(mc,depth);
}
else
{
parent.addChild(mc);
}
}
try
{
parent[name] = mc;
}
catch(e:Error)
{
throw new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.");
}
mc["_name"] = name;
return mc;
}
public static function connectWait(param1:TimerEvent) : void